package com.dupf.product.dao.model;

import java.io.Serializable;

public class ProductVariant implements Serializable {
    /**
     * 编号
     *
     * @mbg.generated
     */
    private Integer id;

    /**
     * 类型 1 颜色 2 尺寸
     *
     * @mbg.generated
     */
    private Integer type;

    /**
     * 组织编号
     *
     * @mbg.generated
     */
    private Integer orgId;

    /**
     * 用户id
     *
     * @mbg.generated
     */
    private Integer userId;

    /**
     * 中文
     *
     * @mbg.generated
     */
    private String variantZh;

    /**
     * 英文
     *
     * @mbg.generated
     */
    private String variantEn;

    /**
     * 法文
     *
     * @mbg.generated
     */
    private String variantFr;

    /**
     * 德文
     *
     * @mbg.generated
     */
    private String variantDe;

    /**
     * 西班牙文
     *
     * @mbg.generated
     */
    private String variantEs;

    /**
     * 日文
     *
     * @mbg.generated
     */
    private String variantJa;

    /**
     * 葡萄牙文
     *
     * @mbg.generated
     */
    private String variantPt;

    /**
     * 意大利文
     *
     * @mbg.generated
     */
    private String variantIt;

    /**
     * 排序，数字越大信息越全
     *
     * @mbg.generated
     */
    private Integer orders;

    /**
     * 创建时间
     *
     * @mbg.generated
     */
    private Long ctime;

    /**
     * 修改时间
     *
     * @mbg.generated
     */
    private Long mtime;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getOrgId() {
        return orgId;
    }

    public void setOrgId(Integer orgId) {
        this.orgId = orgId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getVariantZh() {
        return variantZh;
    }

    public void setVariantZh(String variantZh) {
        this.variantZh = variantZh;
    }

    public String getVariantEn() {
        return variantEn;
    }

    public void setVariantEn(String variantEn) {
        this.variantEn = variantEn;
    }

    public String getVariantFr() {
        return variantFr;
    }

    public void setVariantFr(String variantFr) {
        this.variantFr = variantFr;
    }

    public String getVariantDe() {
        return variantDe;
    }

    public void setVariantDe(String variantDe) {
        this.variantDe = variantDe;
    }

    public String getVariantEs() {
        return variantEs;
    }

    public void setVariantEs(String variantEs) {
        this.variantEs = variantEs;
    }

    public String getVariantJa() {
        return variantJa;
    }

    public void setVariantJa(String variantJa) {
        this.variantJa = variantJa;
    }

    public String getVariantPt() {
        return variantPt;
    }

    public void setVariantPt(String variantPt) {
        this.variantPt = variantPt;
    }

    public String getVariantIt() {
        return variantIt;
    }

    public void setVariantIt(String variantIt) {
        this.variantIt = variantIt;
    }

    public Integer getOrders() {
        return orders;
    }

    public void setOrders(Integer orders) {
        this.orders = orders;
    }

    public Long getCtime() {
        return ctime;
    }

    public void setCtime(Long ctime) {
        this.ctime = ctime;
    }

    public Long getMtime() {
        return mtime;
    }

    public void setMtime(Long mtime) {
        this.mtime = mtime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", type=").append(type);
        sb.append(", orgId=").append(orgId);
        sb.append(", userId=").append(userId);
        sb.append(", variantZh=").append(variantZh);
        sb.append(", variantEn=").append(variantEn);
        sb.append(", variantFr=").append(variantFr);
        sb.append(", variantDe=").append(variantDe);
        sb.append(", variantEs=").append(variantEs);
        sb.append(", variantJa=").append(variantJa);
        sb.append(", variantPt=").append(variantPt);
        sb.append(", variantIt=").append(variantIt);
        sb.append(", orders=").append(orders);
        sb.append(", ctime=").append(ctime);
        sb.append(", mtime=").append(mtime);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ProductVariant other = (ProductVariant) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()))
            && (this.getOrgId() == null ? other.getOrgId() == null : this.getOrgId().equals(other.getOrgId()))
            && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
            && (this.getVariantZh() == null ? other.getVariantZh() == null : this.getVariantZh().equals(other.getVariantZh()))
            && (this.getVariantEn() == null ? other.getVariantEn() == null : this.getVariantEn().equals(other.getVariantEn()))
            && (this.getVariantFr() == null ? other.getVariantFr() == null : this.getVariantFr().equals(other.getVariantFr()))
            && (this.getVariantDe() == null ? other.getVariantDe() == null : this.getVariantDe().equals(other.getVariantDe()))
            && (this.getVariantEs() == null ? other.getVariantEs() == null : this.getVariantEs().equals(other.getVariantEs()))
            && (this.getVariantJa() == null ? other.getVariantJa() == null : this.getVariantJa().equals(other.getVariantJa()))
            && (this.getVariantPt() == null ? other.getVariantPt() == null : this.getVariantPt().equals(other.getVariantPt()))
            && (this.getVariantIt() == null ? other.getVariantIt() == null : this.getVariantIt().equals(other.getVariantIt()))
            && (this.getOrders() == null ? other.getOrders() == null : this.getOrders().equals(other.getOrders()))
            && (this.getCtime() == null ? other.getCtime() == null : this.getCtime().equals(other.getCtime()))
            && (this.getMtime() == null ? other.getMtime() == null : this.getMtime().equals(other.getMtime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
        result = prime * result + ((getOrgId() == null) ? 0 : getOrgId().hashCode());
        result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
        result = prime * result + ((getVariantZh() == null) ? 0 : getVariantZh().hashCode());
        result = prime * result + ((getVariantEn() == null) ? 0 : getVariantEn().hashCode());
        result = prime * result + ((getVariantFr() == null) ? 0 : getVariantFr().hashCode());
        result = prime * result + ((getVariantDe() == null) ? 0 : getVariantDe().hashCode());
        result = prime * result + ((getVariantEs() == null) ? 0 : getVariantEs().hashCode());
        result = prime * result + ((getVariantJa() == null) ? 0 : getVariantJa().hashCode());
        result = prime * result + ((getVariantPt() == null) ? 0 : getVariantPt().hashCode());
        result = prime * result + ((getVariantIt() == null) ? 0 : getVariantIt().hashCode());
        result = prime * result + ((getOrders() == null) ? 0 : getOrders().hashCode());
        result = prime * result + ((getCtime() == null) ? 0 : getCtime().hashCode());
        result = prime * result + ((getMtime() == null) ? 0 : getMtime().hashCode());
        return result;
    }
}